home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 101-125 / scopedisk121 / post1.1 / postband.doc < prev    next >
Text File  |  1995-03-19  |  2KB  |  68 lines

  1. PostScript band printing driver (PostBand, with Post V1.1)
  2. ==========================================================
  3.  
  4. Copyright Adrian Aylward 1990.
  5.  
  6. You may freely copy, use and modify this program (postband).  The source is
  7. included in the distribution.
  8.  
  9. The program calls the PostScript interpreter library to render a file to the
  10. printer in a series of bands.  It can therefore be run on machines with
  11. insufficient memory for a full page buffer; it should be possible to run
  12. it on a 1 megabyte machine.  Since it has to rerun the interpreter for each
  13. band it is going to be several times slower than printing directly.  It also
  14. depends upon the file being conformant to the PostScript structuring
  15. programs.
  16.  
  17. Usage
  18. =====
  19.  
  20.     postband [files...] PRINT file [SIZE xyd..s..p.bc.] [MEM fhlv..]
  21.  
  22. The "files..." are the startup files for Post.  Usually this will be the
  23. standard startup "init.ps".
  24.  
  25. The PRINT option is the name of the PostScript source file to be printed.
  26.  
  27. The SIZE and MEM options are passed directly to Post.  See the file post.doc
  28. for details.
  29.  
  30. Since the default for the SIZE option is to render the entire page at once
  31. you will in practice always need to supply this option.  You are
  32. recommended to experiment until you find a suitable set of values and then
  33. create a shell script for them.  As a starting point for a 1 megabyte
  34. machine, try:
  35.  
  36.     postband init.ps print ... size s480 mem v150000f30000l30000h5000
  37.  
  38. The exact amount of memory you have available depends on how many disks
  39. you have, and how many programs you have resident etc..  N.B. as PostBand
  40. copies the print file to a temporary file in the t: directory, it is
  41. probably a good idea to make sure t: is assigned to a disk and not a ram
  42. drive.
  43.  
  44. File structuring
  45. ================
  46.  
  47. The PostScript file structuring conventions basically assume that a program
  48. consists of a prologue that is execute once at the beginning, and a series
  49. of pages that can be executed independently - saving and restoring the vm.
  50.  
  51. All PostBand is looking for is simply the comments dividing the sections:
  52.  
  53. The first line must begin:
  54.  
  55.     %!PS-Adobe-
  56.  
  57. Then follows the prologue.  Each page begins:
  58.  
  59.     %%Page:
  60.  
  61. At the end of the file is the trailer, which begins:
  62.  
  63.     %%Trailer:
  64.  
  65. N.B. EPSF files, such as demos and clip art, do not fit this structure.
  66. But since they only contain a single "page" you can run the entire file
  67. once for each band; or if you prefer simply edit in the required "%%Page:".
  68.